package cc.customer.web.util;

import cc.customer.aiEmport.damain.CAiEmpImport;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import org.apache.xmlbeans.impl.xb.xsdschema.All;

import java.util.ArrayList;
import java.util.List;

/**
 * Description: newcms
 * Created by yhsh on 2020/6/2 15:59
 * version 2.0
 * 方法说明
 */
public class ExcelListener extends AnalysisEventListener<CAiEmpImport> {

	//创建list集合封装最终的数据
	private List<CAiEmpImport> list ;

	public ExcelListener() {
	}

	public ExcelListener(List<CAiEmpImport> list) {
		this.list = list;
	}

	@Override
	public void invoke(CAiEmpImport cAiEmpImport, AnalysisContext analysisContext) {
		list.add(cAiEmpImport);
	}

	@Override
	public void doAfterAllAnalysed(AnalysisContext analysisContext) {
	}
}
